class djy:pass
djy.name = 'zcl'
djy.age = 18
print(djy.name)
x = djy()
y = djy()
print(x.name,y.name)
print(list(djy.__dict__.keys()))  #查看实例

def adds(x):
    return x.name.upper()
djy.names = adds
print(x.names())